//
//  MHNavibarView.h
//  MHO
//
//  Created by papo on 2/24/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MHNavibarView : UIView
@property (nonatomic, weak) IBOutlet UIButton* leftButton;
@property (nonatomic, weak) IBOutlet UIButton* rightButton;
@property (nonatomic, weak) IBOutlet UIButton* searchButton;
@property (nonatomic, weak) IBOutlet UILabel*   title;
@property (nonatomic, weak) UIViewController*   rootViewController;

+ (MHNavibarView*)createWithTitle:(NSString*)title leftButton:(NSString*)leftBt rightButton:(NSString*)rightBt searchButton:(BOOL)show;

+ (MHNavibarView*)createWithLeftButton:(NSString*)leftBt rightButton:(NSString*)rightBt searchButton:(BOOL)show;

+ (MHNavibarView*)create;

- (id)initWithTitle:(NSString*)title leftButton:(NSString*)leftBt rightButton:(NSString*)rightBt searchButton:(BOOL)show;

- (void)setTitle:(NSString*)title leftButton:(NSString*)leftBt rightButton:(NSString*)rightBt searchButton:(BOOL)show;

- (void)setActionSelectorDelegate:(id)target left:(SEL)left right:(SEL)right search:(SEL)search;

- (IBAction)rightButtonPressed:(id)sender;
- (IBAction)leftButtonPressed:(id)sender;
- (IBAction)searchButtonPressed:(id)sender;


@end
